home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
fulldb13.zip
/
DEMO.PAS
next >
Wrap
Pascal/Delphi Source File
|
1991-10-15
|
567b
|
21 lines
program demo;
{ Demo program for FULLDB. Compile normally, then single step into
the assembler routines wordcount and getword! }
{ NB: See the special instructions to recompile PARSE.PAS and reassemble
PARSE.ASM if PARSE.TPU or PARSE.OBJ is missing, or if you're using
other than TP 6.0. }
uses parse;
var
s : string;
w : word;
begin
s := ' This sentence has 5 words';
writeln(wordcount(s));
for w:=0 to 6 do
writeln('w = ',w,' length = ',length(getword(w,s)),' word = ',getword(w,s));
end.